Get Agent Models
Used to retrieve a list of available AI models that can be used for agent configurations.
API Endpoint
| Property | Value |
|---|---|
| Request Method | GET |
| Request URL | https://api.seliseblocks.com/agents/models |
Request
Request Example
curl -X GET 'https://api.seliseblocks.com/agents/models' \
-H 'accept: application/json'
Request Headers
| Field | Type | Required | Description |
|---|---|---|---|
| accept | string | Yes | Accepted response format. Use application/json |
Parameters
This endpoint does not require any parameters.
Response
Success Response (200 OK)
Returns an array of available model objects.
[
{
"model_id": "gpt-4-turbo",
"model_name": "GPT-4 Turbo",
"provider": "openai",
"model_type": "chat",
"max_tokens": 128000,
"supports_streaming": true,
"supports_function_calling": true,
"description": "Most capable GPT-4 model with improved performance"
},
{
"model_id": "gpt-3.5-turbo",
"model_name": "GPT-3.5 Turbo",
"provider": "openai",
"model_type": "chat",
"max_tokens": 16385,
"supports_streaming": true,
"supports_function_calling": true,
"description": "Fast and efficient model for most tasks"
},
{
"model_id": "claude-3-opus",
"model_name": "Claude 3 Opus",
"provider": "anthropic",
"model_type": "chat",
"max_tokens": 200000,
"supports_streaming": true,
"supports_function_calling": true,
"description": "Most intelligent Claude model for complex tasks"
}
]
Response Structure
The response is an array of model objects. Each model object may contain the following fields:
| Field | Type | Description |
|---|---|---|
| model_id | string | Unique identifier for the model. |
| model_name | string | Human-readable name of the model. |
| provider | string | Model provider (e.g., openai, anthropic, azure). |
| model_type | string | Type of model (e.g., chat, completion, embedding). |
| max_tokens | integer | Maximum token limit for the model. |
| supports_streaming | boolean | Whether the model supports streaming responses. |
| supports_function_calling | boolean | Whether the model supports function/tool calling. |
| description | string | Brief description of the model's capabilities. |
note
The actual response structure may vary depending on the available models and their configurations. Additional fields may be included based on model-specific features.
Error Codes
| Status Code | Description | Response Type |
|---|---|---|
| 200 | Successful Response | Success |
| 500 | Internal Server Error | Server Error |